From 3a43d9b747adecd94802fdc57fdfd760bf853651 Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Thu, 17 Jan 2013 13:53:09 +0000 Subject: [PATCH] libxl: don't continue to create the domain if the device model is not spawned When the device model can't be spawned, rc variable is cleared in device_model_spawn_outcome (libxl_dm.c). In this case libxl will continue to create the domain and let it between life and death. Signed-off-by: Julien Grall Acked-by: Ian Campbell Committed-by: Ian Campbell --- tools/libxl/libxl_dm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index c036dc1f8e..51f9914266 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -1215,8 +1215,6 @@ static void device_model_spawn_outcome(libxl__egc *egc, } } - rc = 0; - out: dmss->callback(egc, dmss, rc); } -- 2.30.2